--[[
	TruRP
	Martin 'Ploo' Pucilowski
	licenses.lua
	
	Handles licenses which grant the player permission/access to individual things.
--]]

--[[
	Possible licenses:
	
	Light Firearm License
	Heavy Firearm License
	Firearm distributor license
	
	Driver's License

	Medic's License

--]]


RP.Licenses = {  }

local function AddLicense( License )
	--License = { name, weapons }
	table.insert( RP.Licenses, License )
	
	return #RP.Licenses
end

LICENSE_LIGHT_FIREARM = AddLicense( {
	Name = "Light Firearm License",
	Weapons = { "weapon_pistol", "weapon_357" }
} )

LICENSE_HEAVY_FIREARM = AddLicense( {
	Name = "Heavy Firearm License",
	Weapons = { "weapon_smg1", "weapon_m4" }
} )

LICENSE_DRIVERS = AddLicense( {
	Name = "Driver's License",
	Weapons = {  }
} )